<template>
  <div id="app">
    <router-view />
    <Navbar v-if="showNav" />
  </div>
</template>
<script>

import Navbar from './views/Navbar'

export default {
  components:{
    Navbar,
  },
  computed: {
    showNav(){
      // console.log(this.$route.meta.num);
      if(this.$route.meta.num  || this.$route.meta.num==0){
        return true;
      }else{
        return false;
      }
    }
  },
}
</script>

<style lang="less">
* {
  margin: 0;
  padding: 0;
}
body,
html,
#app,body,html{
  width: 100%;
  height: 100%;
  overflow: scroll;
  background: #efefef;
  color: #000;
  font-size: 14px;
  font-family: microsoft yahei;
}
a {
  text-decoration: none;
  color: #000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}
</style>
